<?php
App::uses('AppModel', 'Model');
/**
 * Profile Model
 *
 * @property Users $Users
 */
class Profile extends AppModel {

/**
 * Primary key field
 *
 * @var string
 */
	public $primaryKey = 'users_id';
  
/**
 * Display field
 *
 * @var string
 */
	public $displayField = 'name';


	//The Associations below have been created with all possible keys, those that are not needed can be removed
    public $validate = array(
            'updated' => array(
    			 'datetime' => array(
    				'rule' => array('datetime'),
			             ),
                         ),
            'phone'=> array(
                'numeric'=>array('rule'=>'numeric','message'=>'Phone must be number'),
                    ),
                            );
/**
 * belongsTo associations
 *
 * @var array
 */
	public $hasOne = array(
		'Users' => array(
			'className' => 'Users',
			'foreignKey' => 'id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		)
	);
    
}
